package com.varian.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.varian.security.model.SecurityEntity;
import com.varian.system.enums.DictValueTypeEnum;
import com.varian.tool.enums.CommonStatusEnum;
import lombok.Data;

/**
 * @author ben
 * @since 2024/7/9
 */
@Data
@TableName(value = "varian_dict", autoResultMap = true)
public class SysDict extends SecurityEntity {
    /**
     * 上级字典id
     */
    private Long parentId;
    /**
     * 字典名称
     */
    private String dictName;
    /**
     * 字典编码
     */
    private String dictCode;
    /**
     * 字典值
     */
    private String dictValue;
    /**
     * 字典类型 0: number 1: string
     */
    private DictValueTypeEnum dictValueType;
    /**
     * 字典渲染类型
     */
    private String dictRenderType;
    /**
     * 字典描述
     */
    private String dictDesc;
    /**
     * 字典权重
     */
    private Integer dictWeight;
    /**
     * 字典状态
     */
    private CommonStatusEnum dictStatus;
    /**
     * 是否为默认项
     */
    private Boolean defaultItem;
}
